package com.loong.system.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SystemConfigTypeParam {

    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;
    /**
     * 配置类型名称
     */
    @NotBlank(message = "新增、更新时配置类型名称不能为空",groups = {CommonInsert.class})
    private String configName;

    /**
     * 配置类型编码
     */
    @NotNull(message = "新增、更新时配置类型编码不能为空",groups = {CommonInsert.class})
    private Integer configCode;
}
